﻿#include<iostream>
#include"IntArray.h"
using namespace std;

int main() {
	int n;
	cout << "请输入元素个数：";
	cin >> n;

	IntArray x(n);

	for (int i = 0; i < n; i++) {
		x[i] = i;
	}

	for (int i = 0; i < n; i++) {
		cout << "x[" << i << "]=" << x[i] << '\n';
	}

	cin.get();
	cin.get();
}